package com.sz.lk.wingsystem.mvp.contract;


import com.sz.lk.wingsystem.bean.LoginResult;
import com.sz.lk.wingsystem.mvp.BasePresenter;
import com.sz.lk.wingsystem.mvp.BaseView;
import com.sz.lk.wingsystem.mvp.OnNetRequestListener;

/**
 * author : liuke
 * e-mail : 1012459343@qq.com
 * date   : 2019/12/31 13:43
 * desc   :
 * version: 1.0
 */
public interface LoginContract {
    interface Model {
        /**
         * @param name
         * @param pass
         * @param listener
         */
        void Login(String name, String pass, OnNetRequestListener<LoginResult> listener);
    }

    interface view extends BaseView {
        /**
         * 登录成功
         *
         * @param bean
         */
        void onLoginSuccess(LoginResult bean);

    }

    interface Presenter extends BasePresenter<view> {
        /**
         * 登录
         */
        void Get_Login(String name, String pass);
    }
}
